use masking operation instead of test_bit for VGCF bits
authorJuergen Gross <jgross@suse.com>
Fri, 2 Oct 2015 11:44:04 +0000 (13:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:44:04 +0000 (13:44 +0200)
commit613623b6fd1f09c2a8ee16739f823d826e3c0c77
treea2466acfe2687570abcf7e76e105b707e5036a6d
parentbddb98662e78ea32ec12dea52611f79466c6065a
use masking operation instead of test_bit for VGCF bits

Use a bit mask for testing of a set bit instead of test_bit in case no
atomic operation is needed, as this will lead to smaller and more
effective code.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c